import java.util.Objects;

class person
{
    String id;

    public person(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "person{" +
                "id='" + id + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        person person = (person) o;
        return Objects.equals(id, person.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}








public class text90 {
    public static void main(String[] args) {
        person a=new person("123");
        person b=new person("123");
        System.out.println(a.equals(b));

    }
}
